<div class="crumb-wrap">
    <div class="crumb-list"><i class="icon-font"></i><a href="<?=site_url('admini')?>">首页</a>
        <span class="crumb-step">&gt;</span><a class="crumb-name" href="<?=site_url('admini/goods')?>">商品管理</a></span>
        <span class="crumb-step">&gt;</span><span>商品详情</span>
    </div>
</div>

<div class="search-wrap">
    <div class="search-content">
        <table class="search-tab" id="goods_menu">
        </table>
    </div>
</div>
        <div class="result-wrap">
            <div class="result-content">
                <form action="<?=site_url('admini/details/setdet')?>" method="post" id="myform" name="myform" enctype="multipart/form-data">
                    <table class="insert-tab" width="100%">
                        <tbody>
                            <tr>
                                <td><textarea name="content" class="common-textarea" id="content" cols="30" style="width: 98%;" rows="30"><?=$res['content']?></textarea></td>
                            </tr>
                            <tr>
                                <td>
                                	<input type="hidden" name="id" value="<?=$res['id']?>" id="id"/>
                                    <input class="btn btn-primary btn6 mr10" value="提交" type="submit">
                                    <input class="btn btn6" onclick="history.go(-1)" value="返回" type="button">
                                </td>
                            </tr>
                        </tbody></table>
                </form>
            </div>
        </div>
        
        <script type="text/javascript" charset="utf-8" src="<?=base_url('public/ckeditor/ckeditor.js')?>"></script>
        <script type="text/javascript" charset="utf-8">
            //编辑器导入
        window.onload = function()
        {
            CKEDITOR.replace( 'content' );     //content是textarea的名称
        };

        //加载菜单
        $.get("<?=site_url('admini/widget/goods_menu?menu=2&gid='.$res['id'])?>",function(data){
            $("#goods_menu").html(data);
        },'text');
        
        //新增
        function mess(mess){
        	layer.alert(mess,{
                icon:2,
            });
        }
        
        function secc(){
	    	layer.confirm('操作成功，是否要继续编辑商品属性？', {
	    		icon:0,
			    btn: ['继续','取消'], //按钮
			    shade: false //不显示遮罩
			}, function(){
			    location.href="<?=site_url('admini/value/update?gid='.$res['id'])?>";
			});
	    }
	    <?php 
		    if(!empty($mess)){
		    	if($mess == 1){
		    		echo 'secc()';
		    	}else{
		    		echo 'mess()';
		    	}
		    }
	    ?>
	    
        </script>